package com.example.parallelTemplate.completionServiceImplement.service;

import com.example.parallelTemplate.commons.dto.BaseRspDTO;

import java.util.List;
import java.util.concurrent.Callable;
import java.util.concurrent.Executor;

public interface IParallelInvokeCommonService {

    List<BaseRspDTO<Object>> executeTask(List<Callable<BaseRspDTO<Object>>> taskList);

    List<BaseRspDTO<Object>> executeTask(List<Callable<BaseRspDTO<Object>>> taskList, long timeOut, Executor executor);


}
